#ifndef __MAIN_H
#define __MAIN_H
#include "stm32f10x.h"                  // Device header

#include "stm32f10x.h"
#include "bsp_usart.h"
#include "bsp_SysTick.h"
#include "bsp_esp8266.h"
#include "bsp_esp8266_test.h"
// #include "bsp_dht11.h"
#include "bsp_led.h"  
#include "./dwt_delay/core_delay.h"
#include "bsp_esp8266_mqtt.h"
#include "./OLED/OLED.h"
#include "Y01.h"
#include "motor.h"

#include "ds18b20.h"
#include "bsp_GeneralTim.h" 
#include "./rtc/bsp_rtc.h"
#include "./adc/bsp_adc.h"
#include "./Key/bsp_exti.h"
#include "./i2c/bsp_i2c_ee.h"
#include "./water_level/bsp_waterlevel.h"

extern bool motor1_state; //电机状态;
extern float TEMP_Value; //水温度
extern uint8_t sensor_flag ;//传感器数据采集标志
extern int8_t key1_state;
extern __IO uint8_t key2_state ;
extern __IO uint8_t key3_state ;
extern __IO uint8_t key4_state ;
extern uint8_t Buzzer_state ;
extern u8 Water_oxygen_state; //氧气传感器状态
extern uint8_t EEROM_Time_state ;

extern  uint32_t OLED_state;
// extern struct rtc_time systmtime; //RCT
// extern struct rtc_time clocktime;

void motor_pro(void);

#endif






